package pl.edu.pjwstk.kor.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import pl.edu.pjwstk.kor.project4.Project4Query;
import pl.edu.pjwstk.kor.sbql4j.project3.Project3Query;

/**
 * User: pawel
 * Date: 31.12.12
 * Time: 12:27
 */
@Controller
@RequestMapping("/p4")
public class Queries4 {
	@Autowired private Project4Query p4q;

	@RequestMapping("/main.html")
	public ModelAndView main() {

		return new ModelAndView("/p4/main")
				.addObject("q1", p4q.query1())
				.addObject("q2", p4q.query2())
				.addObject("q3", p4q.query3())
				;
	}
}
